

import java.math.BigDecimal;
import java.util.*;
public class Main7 {
    private static Scanner in;
    public static void main(String[] args)
    {
        in=new Scanner(System.in);
        String a,b;
        while(true)
        {
            a=in.next();
            if (a.charAt(0)=='e'||a.charAt(0)=='E')
                System.exit(0);
            BigDecimal ak=new BigDecimal(a);
            b=in.next();
            if (b.charAt(0)=='e'||b.charAt(0)=='E')
                System.exit(0);
            BigDecimal bk=new BigDecimal(b);
            System.out.println(ak.add(bk));
        }

    }
}